__author__ = 'rsj217'


from django.conf.urls import patterns, include, url
from django.contrib.auth.decorators import login_required
from views import SigninView, HomeView, SignoutView, SignupView, SettingView, AvatarModifyView

urlpatterns = patterns('',
    url(r'^setting/(?P<username>\w+)/', SettingView.as_view(), name='setting'),
    url(r'^avatar/(?P<id>\d+)/modify$', AvatarModifyView.as_view(), name='avatar-modify'),
    url(r'^signin/', SigninView.as_view(), name='signin'),
    url(r'^signup/', SignupView.as_view(), name='signup'),
    url(r'^signout/', login_required(SignoutView.as_view()), name='signout'),
    url(r'^home/', HomeView.as_view(), name='home'),
)
